<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>更新学生信息</title>
</head>
<%
    request.setAttribute("cp", request.getContextPath());
%>
<body>
<div>id : ${student.id}</div>
<br/>
<form action="${cp}/updateDao" method="post">
    <label>name :
        <input type="text" name="name" value="${student.name}">
    </label><br/>
    <label>school :
        <input type="text" name="school" value="${student.school}">
    </label><br/>
    <label>gender :
        male <input name="gender" type="radio" value="1" ${student.gender==1?"checked=\"checked\"":""}>
        female <input name="gender" type="radio" value="0" ${student.gender==0?"checked=\"checked\"":""}>
    </label><br/>
    <input type="submit" value="提交修改">
</form>
</body>
</html>
